package com.nyist.zk.dao;

import com.nyist.zk.entities.Blood;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BloodDao {

    void insertBlood(Blood blood);

    void deleteByTypeAndSourceBlood(@Param("b_type") String b_type, @Param("b_source") String b_source);

    void updateBlood(Blood blood);

    List<Blood> findAllBlood();

    Blood findByTypeBlood(String b_type);

    List<Blood> findBySourceBlood(String b_source);

}
